package com.easy.service;

import cn.hutool.db.PageResult;
import com.easy.bean.PostBean;
import com.easy.util.Page;
import com.easy.util.PageRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//这是服务端
public interface PostService {
    PostBean add(PostBean post);
    int del(Integer id);
    int delete(Integer id);
    PostBean update(PostBean post);
    PostBean getId(Integer id);
    List<PostBean> getPostsByUserId(Integer userId);
    List<PostBean> listByType(Integer typeId);

    void searchByTitle(String keyword, Page page);

    List<PostBean> list(PostBean post);
    PostBean get(Integer id);
    void page(Page page, PostBean post);
    void listPage(Page page, PostBean post);
}
